var o = getApp();

Page({
    data: {
        videoAd: o.globalData.config.adConfig.videoAd,
        list: [],
        topShow: !1,
        isFlsShow: !1
    },
    onPageScroll: function(o) {
        o.scrollTop > 300 ? this.setData({
            topShow: !0
        }) : this.setData({
            topShow: !1
        });
    },
    goTop: function(o) {
        wx.pageScrollTo ? wx.pageScrollTo({
            scrollTop: 0
        }) : wx.showModal({
            title: "提示",
            content: "当前微信版本过低，无法使用该功能，请升级到最新微信版本后重试。"
        });
    },
    onLoad: function(t) {
        var s = this;
        o.globalData.showVersion;
        wx.showLoading({
            title: "榜单更新中..."
        }), wx.request({
            url: "https://www.120kg.xyz/public/top250.json",
            success: function(o) {
                s.setData({
                    list: o.data.data
                }), wx.hideLoading();
            }
        });
    },
    onReady: function() {},
    onShow: function() {
        var t = this, s = o.globalData.config, a = s.showVersion, n = s.sessionVersion;
        wx.request({
            url: "https://www.120kg.xyz/wxMovieVersion",
            success: function(o) {
                a < +o.data[n].version && t.setData({
                    isFlsShow: o.data[n].isFlsShow
                });
            }
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onShareAppMessage: function() {}
});